make -j2 -f IncompressiblePipelineBase.makefile
clang        -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o IncompressiblePipelineBase.o IncompressiblePipelineBase.c
clang        -I"/usr/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o IncompressiblePipelineBase_functions.o IncompressiblePipelineBase_functions.c
IncompressiblePipelineBase_functions.c:540:10: warning: implicit declaration of function 'omc_ThermodynamicState' is invalid in C99 [-Wimplicit-function-declaration]
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
         ^
IncompressiblePipelineBase_functions.c:540:8: error: assigning to 'Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase_functions.c:923:8: error: assigning to 'Modelica_Fluid_Machines_PrescribedPump$pump2_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:496:13: warning: implicit declaration of function 'omc_ThermodynamicState' is invalid in C99 [-Wimplicit-function-declaration]
  tmp1555 = omc_ThermodynamicState(threadData, 101325.0, 300.0);
            ^
IncompressiblePipelineBase.c:496:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline3_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1555 = omc_ThermodynamicState(threadData, 101325.0, 300.0);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:512:11: error: assigning to 'Modelica_Fluid_Machines_PrescribedPump$pump1_Monitoring$pump1$monitoring_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1556 = omc_ThermodynamicState(threadData, 101325.0, 300.0);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:540:11: error: assigning to 'Modelica_Fluid_Sources_FixedBoundary$Atmosphere_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1557 = omc_ThermodynamicState(threadData, $PAtmosphere$Pp, $PAtmosphere$PT);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase_functions.c:1211IncompressiblePipelineBase.c:8::607 :error: 11assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline1_FlowModel$pipeline1$flowModel_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; :
 error: assigning to 'Modelica_Fluid_Valves_ValveIncompressible$leak_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  tmp1559 = omc_ThermodynamicState(threadData, $PAtmosphere$Pports$lB1$rB$Pp, (273.15 + ($PAtmosphere$Pports$lB1$rB$Ph_outflow / 4184.0)));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:815:11: error: assigning to 'Modelica_Fluid_Machines_PrescribedPump$pump2_Monitoring$pump2$monitoring_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1589 = omc_ThermodynamicState(threadData, $Ppipeline2$Pmediums$lB2$rB$Pp, (273.15 + ($Ppipeline2$Pmediums$lB2$rB$Ph / 4184.0)));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:858:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline2_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1591 = omc_ThermodynamicState(threadData, $Ppipeline2$Pmediums$lB2$rB$Pp, (273.15 + ($Ppump2$Pmedium$Ph / 4184.0)));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:877:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline3_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1593 = omc_ThermodynamicState(threadData, $Ppipeline3$Pmediums$lB1$rB$Pp, (273.15 + ($Ppump2$Pmedium$Ph / 4184.0)));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase_functions.c:1851:8: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline2_FlowModel$pipeline2$flowModel_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:1457:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline1_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1603 = omc_ThermodynamicState(threadData, $Ppipeline1$Pmediums$lB2$rB$Pp, (273.15 + (((fmax((-$Ppipeline2$Pm_flows$lB1$rB),1e-15) * $Ppipeline2$Pmediums$lB1$rB$Ph) + (fmax((-$Pleak$Pm_flow),1e-15) * $PAtmosphere$Pports$lB1$rB$Ph_outflow)) / ((fmax((-$Ppipeline2$Pm_flows$lB1$rB),1e-15) + fmax((-$Pleak$Pm_flow),1e-15)) * 4184.0))));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:1512:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline1_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1605 = omc_ThermodynamicState(threadData, $Ppipeline1$Pmediums$lB1$rB$Pp, (273.15 + ($Ppump1$Pmedium$Ph / 4184.0)));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase_functions.c:2528:8: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline3_FlowModel$pipeline3$flowModel_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:1783:11: error: assigning to 'Modelica_Fluid_Pipes_DynamicPipe$pipeline2_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1612 = omc_ThermodynamicState(threadData, $Ppipeline1$Pmediums$lB2$rB$Pp, (273.15 + (((fmax($Ppipeline1$Pm_flows$lB1$rB,1e-15) * $Ppipeline1$Pmediums$lB2$rB$Ph) + (fmax((-$Pleak$Pm_flow),1e-15) * $PAtmosphere$Pports$lB1$rB$Ph_outflow)) / ((fmax($Ppipeline1$Pm_flows$lB1$rB,1e-15) + fmax((-$Pleak$Pm_flow),1e-15)) * 4184.0))));
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:2127:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1628);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2162:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1637);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2208:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1650);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2243:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1659);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2307:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1673);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2342:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1682);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2388:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1695);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2423:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1704);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2487:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1718);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2522:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1727);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2568:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1740);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2632:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1754);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2667:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1763);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2713:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1776);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2748:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1785);
                                                                       ^~~~~~~
IncompressiblePipelineBase_functions.c:3691:8: error: assigning to 'Modelica_Fluid_Sources_FixedBoundary$Atmosphere_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp1 = omc_ThermodynamicState(threadData, _p, _T);
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IncompressiblePipelineBase.c:2811:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1800);
                                                                       ^~~~~~~
IncompressiblePipelineBase.c:2846:72: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      throwStreamPrintWithEquationIndexes(threadData, equationIndexes, tmp1809);
                                                                       ^~~~~~~
18 warnings and 10 errors generated.
make: *** [IncompressiblePipelineBase.o] Error 1
make: *** Waiting for unfinished jobs....
IncompressiblePipelineBase_functions.c:4596:8: error: assigning to 'Modelica_Fluid_Valves_ValveIncompressible$leak_Medium_ThermodynamicState' (aka 'struct Modelica_Fluid_Machines_PrescribedPump$pump1_Medium_ThermodynamicState_s') from incompatible type 'int'; 
  tmp2 = omc_ThermodynamicState(threadData, _p, (273.15 + (_h / 4184.0)));
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 7 errors generated.
make: *** [IncompressiblePipelineBase_functions.o] Error 1
Compilation process exited with code 2
